package com.workManager.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbSalaryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbSalaryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andSalaryIdIsNull() {
            addCriterion("SALARY_ID is null");
            return (Criteria) this;
        }

        public Criteria andSalaryIdIsNotNull() {
            addCriterion("SALARY_ID is not null");
            return (Criteria) this;
        }

        public Criteria andSalaryIdEqualTo(Integer value) {
            addCriterion("SALARY_ID =", value, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdNotEqualTo(Integer value) {
            addCriterion("SALARY_ID <>", value, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdGreaterThan(Integer value) {
            addCriterion("SALARY_ID >", value, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SALARY_ID >=", value, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdLessThan(Integer value) {
            addCriterion("SALARY_ID <", value, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdLessThanOrEqualTo(Integer value) {
            addCriterion("SALARY_ID <=", value, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdIn(List<Integer> values) {
            addCriterion("SALARY_ID in", values, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdNotIn(List<Integer> values) {
            addCriterion("SALARY_ID not in", values, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdBetween(Integer value1, Integer value2) {
            addCriterion("SALARY_ID between", value1, value2, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalaryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SALARY_ID not between", value1, value2, "salaryId");
            return (Criteria) this;
        }

        public Criteria andSalMonthIsNull() {
            addCriterion("SAL_MONTH is null");
            return (Criteria) this;
        }

        public Criteria andSalMonthIsNotNull() {
            addCriterion("SAL_MONTH is not null");
            return (Criteria) this;
        }

        public Criteria andSalMonthEqualTo(String value) {
            addCriterion("SAL_MONTH =", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthNotEqualTo(String value) {
            addCriterion("SAL_MONTH <>", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthGreaterThan(String value) {
            addCriterion("SAL_MONTH >", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthGreaterThanOrEqualTo(String value) {
            addCriterion("SAL_MONTH >=", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthLessThan(String value) {
            addCriterion("SAL_MONTH <", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthLessThanOrEqualTo(String value) {
            addCriterion("SAL_MONTH <=", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthLike(String value) {
            addCriterion("SAL_MONTH like", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthNotLike(String value) {
            addCriterion("SAL_MONTH not like", value, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthIn(List<String> values) {
            addCriterion("SAL_MONTH in", values, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthNotIn(List<String> values) {
            addCriterion("SAL_MONTH not in", values, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthBetween(String value1, String value2) {
            addCriterion("SAL_MONTH between", value1, value2, "salMonth");
            return (Criteria) this;
        }

        public Criteria andSalMonthNotBetween(String value1, String value2) {
            addCriterion("SAL_MONTH not between", value1, value2, "salMonth");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("USER_ID =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("USER_ID <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("USER_ID >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("USER_ID >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("USER_ID <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("USER_ID <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("USER_ID in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("USER_ID not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andWagesIsNull() {
            addCriterion("WAGES is null");
            return (Criteria) this;
        }

        public Criteria andWagesIsNotNull() {
            addCriterion("WAGES is not null");
            return (Criteria) this;
        }

        public Criteria andWagesEqualTo(BigDecimal value) {
            addCriterion("WAGES =", value, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesNotEqualTo(BigDecimal value) {
            addCriterion("WAGES <>", value, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesGreaterThan(BigDecimal value) {
            addCriterion("WAGES >", value, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("WAGES >=", value, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesLessThan(BigDecimal value) {
            addCriterion("WAGES <", value, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("WAGES <=", value, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesIn(List<BigDecimal> values) {
            addCriterion("WAGES in", values, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesNotIn(List<BigDecimal> values) {
            addCriterion("WAGES not in", values, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("WAGES between", value1, value2, "wages");
            return (Criteria) this;
        }

        public Criteria andWagesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("WAGES not between", value1, value2, "wages");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceIsNull() {
            addCriterion("SOCIAL_INSURANCE is null");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceIsNotNull() {
            addCriterion("SOCIAL_INSURANCE is not null");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceEqualTo(BigDecimal value) {
            addCriterion("SOCIAL_INSURANCE =", value, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceNotEqualTo(BigDecimal value) {
            addCriterion("SOCIAL_INSURANCE <>", value, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceGreaterThan(BigDecimal value) {
            addCriterion("SOCIAL_INSURANCE >", value, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SOCIAL_INSURANCE >=", value, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceLessThan(BigDecimal value) {
            addCriterion("SOCIAL_INSURANCE <", value, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SOCIAL_INSURANCE <=", value, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceIn(List<BigDecimal> values) {
            addCriterion("SOCIAL_INSURANCE in", values, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceNotIn(List<BigDecimal> values) {
            addCriterion("SOCIAL_INSURANCE not in", values, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SOCIAL_INSURANCE between", value1, value2, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andSocialInsuranceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SOCIAL_INSURANCE not between", value1, value2, "socialInsurance");
            return (Criteria) this;
        }

        public Criteria andHousingFundIsNull() {
            addCriterion("HOUSING_FUND is null");
            return (Criteria) this;
        }

        public Criteria andHousingFundIsNotNull() {
            addCriterion("HOUSING_FUND is not null");
            return (Criteria) this;
        }

        public Criteria andHousingFundEqualTo(BigDecimal value) {
            addCriterion("HOUSING_FUND =", value, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundNotEqualTo(BigDecimal value) {
            addCriterion("HOUSING_FUND <>", value, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundGreaterThan(BigDecimal value) {
            addCriterion("HOUSING_FUND >", value, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("HOUSING_FUND >=", value, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundLessThan(BigDecimal value) {
            addCriterion("HOUSING_FUND <", value, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundLessThanOrEqualTo(BigDecimal value) {
            addCriterion("HOUSING_FUND <=", value, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundIn(List<BigDecimal> values) {
            addCriterion("HOUSING_FUND in", values, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundNotIn(List<BigDecimal> values) {
            addCriterion("HOUSING_FUND not in", values, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("HOUSING_FUND between", value1, value2, "housingFund");
            return (Criteria) this;
        }

        public Criteria andHousingFundNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("HOUSING_FUND not between", value1, value2, "housingFund");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceIsNull() {
            addCriterion("COMMERCIAL_INSURANCE is null");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceIsNotNull() {
            addCriterion("COMMERCIAL_INSURANCE is not null");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceEqualTo(BigDecimal value) {
            addCriterion("COMMERCIAL_INSURANCE =", value, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceNotEqualTo(BigDecimal value) {
            addCriterion("COMMERCIAL_INSURANCE <>", value, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceGreaterThan(BigDecimal value) {
            addCriterion("COMMERCIAL_INSURANCE >", value, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("COMMERCIAL_INSURANCE >=", value, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceLessThan(BigDecimal value) {
            addCriterion("COMMERCIAL_INSURANCE <", value, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("COMMERCIAL_INSURANCE <=", value, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceIn(List<BigDecimal> values) {
            addCriterion("COMMERCIAL_INSURANCE in", values, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceNotIn(List<BigDecimal> values) {
            addCriterion("COMMERCIAL_INSURANCE not in", values, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("COMMERCIAL_INSURANCE between", value1, value2, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andCommercialInsuranceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("COMMERCIAL_INSURANCE not between", value1, value2, "commercialInsurance");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNull() {
            addCriterion("TOTAL_AMOUNT is null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNotNull() {
            addCriterion("TOTAL_AMOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT =", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT <>", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThan(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT >", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT >=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThan(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT <", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT <=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIn(List<BigDecimal> values) {
            addCriterion("TOTAL_AMOUNT in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotIn(List<BigDecimal> values) {
            addCriterion("TOTAL_AMOUNT not in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TOTAL_AMOUNT between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TOTAL_AMOUNT not between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("DESCRIPTION is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("DESCRIPTION is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("DESCRIPTION =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("DESCRIPTION <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("DESCRIPTION >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("DESCRIPTION <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("DESCRIPTION like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("DESCRIPTION not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("DESCRIPTION in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("DESCRIPTION not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("DESCRIPTION between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("DESCRIPTION not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNull() {
            addCriterion("IS_VALID is null");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNotNull() {
            addCriterion("IS_VALID is not null");
            return (Criteria) this;
        }

        public Criteria andIsValidEqualTo(Boolean value) {
            addCriterion("IS_VALID =", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotEqualTo(Boolean value) {
            addCriterion("IS_VALID <>", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThan(Boolean value) {
            addCriterion("IS_VALID >", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IS_VALID >=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThan(Boolean value) {
            addCriterion("IS_VALID <", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThanOrEqualTo(Boolean value) {
            addCriterion("IS_VALID <=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidIn(List<Boolean> values) {
            addCriterion("IS_VALID in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotIn(List<Boolean> values) {
            addCriterion("IS_VALID not in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidBetween(Boolean value1, Boolean value2) {
            addCriterion("IS_VALID between", value1, value2, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IS_VALID not between", value1, value2, "isValid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}